package com.lening.security.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.security.dao.ClassifyDAO;
import com.lening.security.dto.ClassifyDTO;
import com.lening.security.po.ClassifyPO;
import com.lening.security.service.IClassifyService;
import com.lening.common.base.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author 赵子豪
 * @date 2024年06月04日 08时59分27秒
 * 巡更分类
 */
@Slf4j
@Service
public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyDAO, ClassifyPO, ClassifyDTO> implements IClassifyService {
    @Autowired
    private ClassifyDAO classifyDAO;

    @Value("${file.path}")
    private String filePath;

    @Value("${server.port}")
    private String port;

    @Override
    public Page<ClassifyDTO> classifypage(ClassifyDTO classifyDTO) {
        return classifyDAO.classifypage(classifyDTO);
    }

    @Override
    public Page<ClassifyDTO> get(ClassifyDTO classifyDTO) {
        return classifyDAO.get(classifyDTO);
    }

//    @Override
//    public Map<String, String> upload(MultipartFile file) {
//        return FileUploadUtil.upload(file,filePath,port);
//    }
}